<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page contentType="text/html; charset=UTF-8" %>
<style>
/* 登录窗口 */
.formLib{padding:20px 0; clear:both;}
.formLib input{padding:0 10px; height:36px; border:1px solid #ccc; background: url('<c:url value="/js/plug/layer-v1.8.5/layer/skin/default/textbg.png" />') #fff repeat-x;}
.formLib .form_lilib{position:relative; margin-bottom:20px; font-size:0;}
.form_lilib *{display:inline-block; *display:inline; *zoom:1; vertical-align:top; font-size:14px; line-height:36px;}
.form_lilib label{width:100px; height:36px; text-align:right; padding-right:5px; overflow:hidden; text-overflow: ellipsis; white-space:nowrap;}
.form_lilib span{padding:0 5px;}
.from_msg{padding-left:10px; font-size:12px; color:#999;}
.from_msg a{color:#3595CC}
.form_libtn{padding-left:105px; font-size:12px; color:#999;}
.formLib .BB_button{line-height:30px; padding:0 30px; border:none; background:#f40; color:#fff; }
form.cmxform {
	width: 370px;
	font-size: 1.0em;
	color: #333;
}

form.cmxform legend {
	padding-left: 0;
}

form.cmxform legend, form.cmxform label {
	color: #333;
}

form.cmxform fieldset {
	border: none;
	border-top: 1px solid #C9DCA6;
	background: url(../images/cmxform-fieldset.gif) left bottom repeat-x;
	background-color: #F8FDEF;
}

form.cmxform fieldset fieldset {
	background: none;
}

form.cmxform fieldset p, form.cmxform fieldset fieldset {
	padding: 5px 10px 7px;
	background: url(../images/cmxform-divider.gif) left bottom repeat-x;
}

form.cmxform label.error, label.error {
	/* remove the next line when you have trouble in IE6 with labels in list */
	color: red;
	font-style: italic
}
div.error { display: none; }
input {	border: 1px solid black; }
input.checkbox { border: none }
input:focus { border: 1px dotted black; }
input.error { border: 1px dotted red; }
form.cmxform .gray * { color: gray; }
</style>

   <form class="login-bd" id="dialogloginForm"  name="dialogloginForm" action="<c:url value='/user/ajaxlogin.s'/>"  method="post">
	<ul class="formLib">
		<li class="form_lilib">
			<label>登录名：</label>
			<input type="text" name="loginName"   placeholder="请输入登录名" autocomplete="off" value="" required="true">
			
		</li>
		<li class="form_lilib">
			<label>密码：</label>
			<input type="password"  name="loginPwd"  placeholder="请输入密码" value="" required="true">
		</li>
		<!--  
		<li class="form_lilib">
			<label>验证码：</label>
			<input type="text" id="login_yan" name="login_yan" placeholder="请输入验证码" autocomplete="off" style="width:90px;">
			<img class="checkimg" src="http://www.bayuanbao.com/ajax/captcha" onclick="this.src='http://www.bayuanbao.com/ajax/captcha'" title="换一张">
		</li>
		-->
		<li class="form_libtn form_regtn">
			<input type="button" class="BB_button" value="登录" style="cursor: pointer;" onclick="dialogloginSubmit();">
		</li>
	</ul>
</form>
<script>
//弹出框的 登录窗口提交
$("#dialogloginForm").validate();
function dialogloginSubmit(){
	if($("#dialogloginForm").valid()){
		$("#dialogloginForm").ajaxSubmit({  
			type:"post",   
			data:$('#dialogloginForm').serialize(),
            dataType:"json", 
            success:function(data){   
                if(data.code=="200"){
                	 layer.msg('登录成功!',1, {type:1,shade: [0.2, '#ccc']});
                	 layer.close(loginLayer);
                }
                else{
                	layer.msg(data.result,1, {type: 8,shade: [0.2, '#ccc']});
                }
            }  
        });
		
	}
	
}
</script>